[Java2D] Is this bad practice? Multiple Graphics2D Objects

Posted by m00st on Stack Overflow See other posts from Stack Overflow or by m00st
Published on 2010-06-18T13:58:08Z Indexed on 2010/06/18 14:03 UTC
Read the original article Hit count: 330

Filed under:
|
|

I've created a JPanel canvas that holds all graphics; namely JLabel. To get animated sprites to work you have to over ride the paintComponent of the extended JLabel class. I've successfully implemented animated sprites this way.

Is it bad practice to have a Graphics2D canvas and then have multiple 'images' in their own Graphics2D?

© Stack Overflow or respective owner

Related posts about java

Related posts about java2d